package com.huaxin.device.dto.request;

import com.huaxin.device.dto.enums.validation.ValidAlarmLevel;
import com.huaxin.device.dto.request.base.BasePageReqDTO;
import com.huaxin.hxenum.validation.ValidDeviceType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class AlarmThresholdTemplatePageListReqDTO extends BasePageReqDTO {
    @Schema(description = "设备类型", example = "circuit_breaker")
    @ValidDeviceType
    private String deviceType;

    @Schema(description = "默认报警等级", example = "1")
    @ValidAlarmLevel
    private Integer alarmLevel;

    @Schema(description = "组织家族ID", example = "f3b2f8e1-4c5d-4e6f-8b2a-1c2d3e4f5a6b")
    private String familyId;

    @Schema(description = "关键字查询，支持模板名称和描述查询")
    private String keyword;
}
